﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microhard.Core.DBUtility;
using Micrhard.FMCG.Server.Validator;

namespace Micrhard.FMCG.Server.Models
{
    [FluentValidation.Attributes.Validator(typeof(CheckinModelValidator))]
    public class CheckinModel : BasePermissionModel
    {
        [ModelPKID]
        public Guid CheckID { set; get; }
        public Guid EmployeeID { set; get; }
        public EmployeeModel Employee { set; get; }
        public double Gpslng { set; get; }
        public double Gpslat { set; get; }
        public double Baidulng { set; get; }
        public double Baidulat { set; get; }
        public DateTime CreateTime { set; get; }
        public Guid SubKAID { set; get; }
        public SubKAModel SubKA { set; get; }
        public bool IsChecked { set; get; }
        public DateTime UpdateTime { set; get; }
        public string SubKACode { set; get; }
        public string Address { set; get; }
        public string Error { set; get; }

        public List<SubKAJSONModel> MngSubKA { set; get; }
        public List<Guid> SubKAsForCheckIn { set; get; }
    }
}
